﻿namespace Ledict.ConditionExtract.BLL.WorkProcess
{

    public class WorkThreadFactory
    {
        public static WorkThread CreateWorkThreadObj(string keyWord)
        {
            WorkThread workThreadObj;
            switch (keyWord)
            {
                case "WorkThread_first_Crime":
                    workThreadObj = new WorkThread_first_Crime();
                    break;
                case "WorkThread_first_CrimeNew":
                    workThreadObj = new WorkThread_first_CrimeNew();
                    break;
                case "WorkThread_first_People":
                    workThreadObj = new WorkThread_first_People();
                    break;
                case "WorkThread_first_People_争议焦点":
                    workThreadObj = new WorkThread_first_People_争议焦点();
                    break;
                case "WorkThread_first_PeopleNew":
                    workThreadObj = new WorkThread_first_PeopleNew();
                    break;                    
                case "WorkThread_Second_Crime":
                    workThreadObj = new WorkThread_Second_Crime();
                    break;

                case "WorkThread_Order":
                    workThreadObj = new WorkThread_Order();
                    break;

                default:
                    workThreadObj = new WorkThread_first_Crime();
                    break;
            }

            return workThreadObj;


        }

    }
}
